home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / font library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.8 KB  |  100 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        font library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef fontLibraryIncludes
  13. #define fontLibraryIncludes
  14.  
  15.     #ifndef fontTypesIncludes
  16. #include "font types.h"
  17. /*    #include "math types.h"                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22.     #endif
  23.  
  24.     #ifndef graphicsTypesIncludes
  25. #include "graphics types.h"
  26.     #endif
  27.  
  28.     #ifndef fontRoutinesIncludes
  29. #include "font routines.h"
  30. /*    #include "graphics linkage.h"                                */
  31.     #endif
  32.  
  33.     #ifdef __cplusplus
  34. extern "C" {
  35.     #endif
  36.  
  37. #define weightVariationTag 0x77676874
  38.  
  39. #define widthVariationTag 0x77647468
  40.  
  41. #define slantVariationTag 0x736c6e74
  42.  
  43. #define opticalScaleVariationTag 0x6f70737a
  44.  
  45. #define prefwghtweighting 0x00010000
  46.  
  47. #define prefwdthweighting 0x00020000
  48.  
  49. #define prefslntweighting 0x00010000
  50.  
  51. #define prefcontweighting 0x00040000
  52.  
  53. enum commonFonts {
  54.     firstCommonFont,
  55.     chicagoFont                    = firstCommonFont,
  56.     courierFont,
  57.     genevaFont,
  58.     helveticaFont,
  59.     monacoFont,
  60.     newyorkFont,
  61.     symbolFont,
  62.     timesFont,
  63.     lastCommonFont                = timesFont
  64. };
  65.  
  66. typedef long commonFont;
  67.  
  68. enum matchingStyles {
  69.     noMatching                    = 0,
  70.     useStyleMatching,
  71.     useVariationsMatching,
  72.     useTextFaceMatching            = 4
  73. };
  74.  
  75. typedef long matchingStyle;
  76.  
  77. extern gxFont GetCommonFont(commonFont font);
  78. extern void SetShapeCommonFont(gxShape target, commonFont font);
  79. extern void SetStyleCommonFont(gxStyle target, commonFont font);
  80. extern gxFont FindCNameFont(gxFontName meaning, const char name[]);
  81. extern gxFont FindPNameFont(gxFontName meaning, const unsigned char name[]);
  82. extern long FindFontCName(gxFont fontID, gxFontName meaning, char name[]);
  83. extern long FindFontPName(gxFont fontID, gxFontName meaning, unsigned char name[]);
  84. extern long FindStyleFontCName(gxStyle source, gxFontName meaning, char name[]);
  85. extern long FindStyleFontPName(gxStyle source, gxFontName meaning, unsigned char name[]);
  86. extern void SetStylePNamedFont(gxStyle target, const unsigned char name[]);
  87. extern void SetStyleCNamedFont(gxStyle target, const char *name);
  88. extern long CountFontFamilies(void);
  89. extern gxFont FindFontFamily(long index, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long nameLength, const unsigned char *name);
  90. extern long CountFontStyles(gxFont family);
  91. extern gxFont FindFontStyle(gxFont family, long index, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long nameLength, const unsigned char *name);
  92. extern void SetMatchingStyle(gxFont targetFamily, gxStyle theStyle, matchingStyle matchInfo);
  93. extern gxStyle ReturnMatchingStyle(gxFont targetFamily, gxStyle theStyle, matchingStyle matchInfo);
  94.     #ifdef __cplusplus
  95. }
  96.     #endif
  97.  
  98. #endif
  99.  
  100.